package Coffee.dao;


import Coffee.bean.User;

import java.util.List;

public interface UserDao {
    void insertUser(User user);//增加用户
    User queryUser(String username);//根据用户名字查询
    int delUserbyName(String username);//删除
    int updateUser(String username,String userpwd,String userid);//前台输入oldname,newname,userpwd,oldname得到id
    List<User> queryAll();//查询所有
    User login(String username,String userpwd);//登录
    int insertMoney(int money ,String username);//充值
    int queryMoneyByUsername(String username);//查询用户的余额
    int updateMoney(int money,String username);//消费-钱包操作--
}
